package wsp.dailymarket.admin;

import wsp.dailymarket.obj.UserProfileBean;

/**
 * Represents a single user that the administrator can edit
 * @author Matt
 */
public class EditableClient {

	private boolean editable;
	private UserProfileBean clientProfile;
	private String password;
	private String clientID;
	private int clientType;

	public EditableClient() {
		clientProfile = new UserProfileBean();
		editable = false;
		password = "";
		clientID = "";
		clientType = 0;
	}

	public void setUserProfile(UserProfileBean newValue) {
		this.clientProfile = newValue;
	}

	public UserProfileBean getUserProfile() {
		return this.clientProfile;
	}

	public void setEditable(boolean newValue) {
		this.editable = newValue;
	}

	public boolean isEditable() {
		return this.editable;
	}

	public void setPassword(String newValue) {
		this.password = newValue;
	}

	public String getPassword() {
		return this.password;
	}

	public void setClientID(String newValue) {
		this.clientID = newValue;
	}

	public String getClientID() {
		return this.clientID;
	}

	public void setClientType(String newValue) {
		this.clientType = Integer.parseInt(newValue);
	}

	public String getClientType() {
		return String.valueOf(this.clientType);
	}

	public void setClientTypeInt(int newValue) {
		this.clientType = newValue;
	}

	public int getClientTypeInt() {
		return this.clientType;
	}

	public int getClientTypeAdmin() {
		return UserProfileBean.CLIENT_TYPE_ADMIN;
	}

	public int getClientTypePartner() {
		return UserProfileBean.CLIENT_TYPE_PARTNER;
	}

	public int getClientTypeCustomer() {
		return UserProfileBean.CLIENT_TYPE_CUSTOMER;
	}
}
